#!/usr/bin/ksh

# Script name: funparas.ksh
print 'The number of arguments of the main script $#: ' $#
function hello
{
	print "+++++++Parameters of the function+++++++"
	print '$1 the function is: ' $1
	print 'The number of argument of the function $#: ' $#
	print "+++++++End of parameters of the function++++++"
}

print 'Input passed and stored in $1 is: ' $1

hello John	# execute the function hello

print
print 'After the function $1 is still' $1
